package com.server.server_a10.entity.heatingSystem;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.server.server_a10.entity.Equipment;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 供暖设备
 * <p>
 * param:
 * id 设备识别码
 * isOpen 开启状态
 * temperature 温度
 * model 模式
 * air_speed 风速
 */
@Data
public class HeatingEquipment extends Equipment {

    @TableField(exist = false)
    @ApiModelProperty(value = "是否开启")
    private boolean isOpen;

    //温度
    @TableField(exist = false)
    @ApiModelProperty(value = "温度")
    private int temperature;

    /**
     * 1,制冷
     * 2,制热
     * 3,通风
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "模式，1,制冷2,制热3,通风")
    private int model;

    /**
     * 1,低风
     * 2,中风
     * 3,高风
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "风速，1,低风,2中风制热,3高风")
    private int airSpeed;
    public HeatingEquipment(){}
    public HeatingEquipment(Long id, boolean isOpen, int temperature, int model, int airSpeed) {
        this.id = id;
        this.isOpen = isOpen;
        this.temperature = temperature;
        this.model = model;
        this.airSpeed = airSpeed;
    }
}
